package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.SocPlanFeedbackRecordAddDTO;
import org.jsola.hr.dto.SocPlanFeedbackRecordUpdateDTO;
import org.jsola.hr.query.SocPlanFeedbackRecordQuery;
import org.jsola.hr.vo.SocPlanFeedbackRecordListVO;
import org.jsola.hr.vo.SocPlanFeedbackRecordVO;

import java.util.List;

/**
 * 增减员计划反馈记录表
 *
 * @author zhr
 */
@Api(tags = "hr-增减员计划反馈记录表")
public interface ISocPlanFeedbackRecordControllerAPI {

    /**
     * 新增增减员计划反馈记录表
     * @param socPlanFeedbackRecordAddDTO 增减员计划反馈记录表新增实体
     * @return 增减员计划反馈记录表展示对象
     */
    @ApiOperation(value = "新增增减员计划反馈记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socPlanFeedbackRecordAddDTO", dataType = "SocPlanFeedbackRecordAddDTO", value = "新增增减员计划反馈记录表", paramType = "body")
    })
    Result<SocPlanFeedbackRecordVO> save(SocPlanFeedbackRecordAddDTO socPlanFeedbackRecordAddDTO);


    /**
     * 修改增减员计划反馈记录表
     * @param socPlanFeedbackRecordUpdateDTO 增减员计划反馈记录表
     * @return 更新数量
     */
    @ApiOperation(value = "修改增减员计划反馈记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socPlanFeedbackRecordUpdateDTO", dataType = "SocPlanFeedbackRecordUpdateDTO", value = "修改增减员计划反馈记录表", paramType = "body")
    })
    Result<Integer> update(SocPlanFeedbackRecordUpdateDTO socPlanFeedbackRecordUpdateDTO);




    /**
     * 删除单个增减员计划反馈记录表，彻底删除
     * @param socPlanFeedbackRecordId 增减员计划反馈记录表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个增减员计划反馈记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socPlanFeedbackRecordId", dataType = "String", value = "增减员计划反馈记录表id", paramType = "path")
    })
    Result<Integer> delete(String socPlanFeedbackRecordId);


    /**
     * 批量删除增减员计划反馈记录表，彻底删除
     * @param socPlanFeedbackRecordIds 增减员计划反馈记录表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除增减员计划反馈记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socPlanFeedbackRecordIds", dataType = "String[]", value = "增减员计划反馈记录表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] socPlanFeedbackRecordIds);


    /**
     * 根据增减员计划反馈记录表id查询增减员计划反馈记录表详情
     * @param socPlanFeedbackRecordId 增减员计划反馈记录表id
     * @return 增减员计划反馈记录表详情
     */
    @ApiOperation(value="根据增减员计划反馈记录表id查询增减员计划反馈记录表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socPlanFeedbackRecordId", dataType = "String", value = "增减员计划反馈记录表id", paramType = "path")
    })
    Result<SocPlanFeedbackRecordVO> findById(String socPlanFeedbackRecordId);


    /**
     * 查询增减员计划反馈记录表
     * @param socPlanFeedbackRecordQuery 增减员计划反馈记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询增减员计划反馈记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socPlanFeedbackRecordQuery", dataType = "SocPlanFeedbackRecordQuery", value = "增减员计划反馈记录表查询参数", paramType = "query")
    })
    Result<List<SocPlanFeedbackRecordListVO>> listAll(SocPlanFeedbackRecordQuery socPlanFeedbackRecordQuery);


     /**
     * 分页查询增减员计划反馈记录表
     * @param socPlanFeedbackRecordQuery 增减员计划反馈记录表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询增减员计划反馈记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "socPlanFeedbackRecordQuery", dataType = "SocPlanFeedbackRecordQuery", value = "增减员计划反馈记录表查询参数", paramType = "query")
    })
    Result<Page<SocPlanFeedbackRecordListVO>> page(SocPlanFeedbackRecordQuery socPlanFeedbackRecordQuery);


}

